home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Hilite color
- Sent: 8/22/96 11:23 AM
- Received: 8/22/96 11:31 AM
- From: Brad Pettit, bpettit@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- You probably know the background color over which you are drawing. If
- that's the case, just specifying FW_kHilite should work. When Quickdraw
- applies the hilite color, it looks to see if the area will be hiliting
- with the same color (making the selection invisible, very common with
- some grays), and switches the colors so that the other color is used
- instead.
-
- -----------------------------------------------------------------------
- Brad Pettit bpettit@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
-
- >
- >>By the selection color I assume you mean the highlight color. In ODF 1 If
- >>you use the FW_kHilite transfer mode with your ink and black for the
- >>foreground color you will get the system highlight color. We changed that
- >>in ODF 2: FW_kHilite always uses the ink foreground color,
- >>FW_kSystemHilite ignores the ink foreground color and uses instead the
- >>system hightlight color.
- >>
- >>........................................................................
- >> Henri Lamiraux lamiraux@apple.com
- >> Apple Computer, Inc. OpenDoc(tm) Development Framework
- >>........................................................................
- >
- >
- >OK, this seems to be a way to get an object to draw in the highlight
- >color, but for highlighting text I want to be smart about the highlight
- >and I wnat to get the correct highlight background color, and the
- >corresponding foreground color. For example, if the user has Green as the
- >highlight color, that corresponds to green background with black text. If
- >they have black as the highlight color that corresponds to black
- >background with white text.
- >
- >Is there a way to get both the background and foreground colors correctly
- >for my highlighted text object?
- >
- >-Scott Adler
-